﻿using UnityEngine;
using System.Collections;

public class TestRootScale : MonoBehaviour {
	UIRoot root;
	public float rootActiveHeight;
	public float activeHeight;
	// Use this for initialization
	void Start () {
		root = GetComponentInParent<UIRoot> ();
		if (root == null)
			Destroy (this);
		rootActiveHeight = (float)(root.activeHeight)/root.manualHeight;
		transform.localScale =Vector3.one* rootActiveHeight;
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
